-
Notifications
You must be signed in to change notification settings - Fork 260
ci: clean up disk space before build and skip windows port forward #4109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the pipeline to separate NPM container builds into a dedicated stage and adds disk space management to prevent build failures due to insufficient space.
- NPM container builds moved from the
containerizestage to a newcontainerize_npmstage - Added disk space cleanup script that removes unnecessary hosted tooling before builds
- Reduced image build retry count from 3 to 2
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .pipelines/pipeline.yaml | Extracted NPM build jobs into a new containerize_npm stage and updated the publish_npm stage dependency accordingly |
| .pipelines/containers/container-template.yaml | Added disk space cleanup and monitoring steps, reduced retry count to 2 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/azp run Azure Container Networking PR |
|
Azure Pipelines successfully started running 1 pipeline(s). |
jpayne3506
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
When we backport make sure to add disk cleanup to signed flow as well.
https://github.com/Azure/azure-container-networking/blob/b2762a36e7243523ff4758b4a3244f373f5d9442/.… -> azure-container-networking/.pipelines/build/images.jobs.yaml at release/v1.6 · Azure/azure-containe…
…4109) * clean up disk space before build * skip portforward e2e in windows
…4109) * clean up disk space before build * skip portforward e2e in windows
…4109) * clean up disk space before build * skip portforward e2e in windows
Reason for Change:
Previously, building npm images would cause the agent to run out of disk space. This PR adds a step before building the image which cleans up unneeded files (from: https://github.com/cilium/cilium/blob/v1.16.8/.github/actions/disk-cleanup/action.yaml).
Also splits npm into its own stage and displays disk usage before and after disk cleanup and image build.
Also skips windows port forward tests
Issue Fixed:
Requirements:
Notes:
Run: https://msazure.visualstudio.com/One/_build/results?buildId=142753721&view=results